#!/bin/bash
#newtweets by Storm Dragon
#Announces new tweets if any.
#for best results place in ~/bin/newtweets and add newtweets to startup applications.
x=0
while [ $x -lt 1 ]; do
newTweets=`twidge lsrecent -u`
if [ ! -z "$newTweets" ] ; then
#if you are using something other than speech-dispatcher change the following line to the voice you are using
#for example: aoss swift or or echo | festival --tts
spd-say -w "You have new tweets waiting."
fi
#The following line searches for new tweets every 5 minutes.  Change the number higher for longer, lower for shorter amounts of time.
sleep 300
done
